/*
 * 文件名：BillRepairExcelVO.java
 * 版权：Copyright by www.tiansu-china.com/
 * 描述：
 * 修改人：congriran
 * 修改时间：2020年11月30日
 * 跟踪单号：
 * 修改单号：
 * 修改内容：
*/

package com.tiansu.reborn.wanda.modules.executor.entity.vo;

import java.io.Serializable;
import java.util.Date;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.tiansu.reborn.wanda.modules.executor.entity.BillDayEntity;

import lombok.Data;

@Data
public class BillRepairExcelVO implements Serializable
{
    private static final long serialVersionUID = 1507130862482126268L;

    @ColumnWidth(13)
    @ExcelProperty(value = "DeviceId", index = 0)
    private Integer deviceid;

    @ColumnWidth(20)
    @ExcelProperty(value = "RecDate", index = 1)
    private Date recdate;

    @ColumnWidth(14)
    @ExcelProperty(value = "Billtimes", index = 2)
    private Integer billtimes;

    @ColumnWidth(17)
    @ExcelProperty(value = "startcount1", index = 3)
    private Float startcount1;

    @ColumnWidth(14)
    @ExcelProperty(value = "endcount1", index = 4)
    private Float endcount1;

    @ColumnWidth(10)
    @ExcelProperty(value = "price1", index = 5)
    private Float price1;

    @ColumnWidth(17)
    @ExcelProperty(value = "startcount2", index = 6)
    private Float startcount2;

    @ColumnWidth(14)
    @ExcelProperty(value = "endcount2", index = 7)
    private Float endcount2;

    @ColumnWidth(10)
    @ExcelProperty(value = "price2", index = 8)
    private Float price2;

    @ColumnWidth(17)
    @ExcelProperty(value = "startcount3", index = 9)
    private Float startcount3;

    @ColumnWidth(14)
    @ExcelProperty(value = "endcount3", index = 10)
    private Float endcount3;

    @ColumnWidth(10)
    @ExcelProperty(value = "price3", index = 11)
    private Float price3;

    @ColumnWidth(17)
    @ExcelProperty(value = "startcount4", index = 12)
    private Float startcount4;

    @ColumnWidth(14)
    @ExcelProperty(value = "endcount4", index = 13)
    private Float endcount4;

    @ColumnWidth(10)
    @ExcelProperty(value = "price4", index = 14)
    private Float price4;

    @ColumnWidth(17)
    @ExcelProperty(value = "startcount5", index = 15)
    private Float startcount5;

    @ColumnWidth(14)
    @ExcelProperty(value = "endcount5", index = 16)
    private Float endcount5;

    @ColumnWidth(10)
    @ExcelProperty(value = "price5", index = 17)
    private Float price5;
    
    public BillRepairExcelVO(){}
    
    public BillRepairExcelVO(BillDayEntity billEntity)
    {
        this.deviceid = billEntity.getDeviceid();
        this.recdate = billEntity.getRecdate();
        this.billtimes = billEntity.getBilltimes();
        this.startcount1 = billEntity.getStartcount1();
        this.endcount1 = billEntity.getEndcount1();
        this.price1 = billEntity.getPrice1();
        this.startcount2 = billEntity.getStartcount2();
        this.endcount2 = billEntity.getEndcount2();
        this.price2 = billEntity.getPrice2();
        this.startcount3 = billEntity.getStartcount3();
        this.endcount3 = billEntity.getEndcount3();
        this.price3 = billEntity.getPrice3();
        this.startcount4 = billEntity.getStartcount4();
        this.endcount4 = billEntity.getEndcount4();
        this.price4 = billEntity.getPrice4();
        this.startcount5 = billEntity.getStartcount5();
        this.endcount5 = billEntity.getEndcount5();
        this.price5 = billEntity.getPrice5();
    }

    public boolean isEmpty()
    {
        if (this.deviceid == null || this.recdate == null || this.billtimes == null || startcount1 == null
                || this.endcount1 == null | this.price1 == null || startcount2 == null
                || this.endcount2 == null | this.price2 == null || startcount3 == null
                || this.endcount3 == null | this.price3 == null || startcount4 == null
                || this.endcount4 == null | this.price4 == null || startcount5 == null
                || this.endcount5 == null | this.price5 == null)
        {
            return true;
        }
        else
        {
            return false;
        }
    }

    public boolean isNotEmpty()
    {
        return !isEmpty();
    }

    
}
